package com.example.learn_gl_android.model


import com.example.learn_gl_android.anglib.core.mesh.IMesh


data class Triangle(override val vertices: FloatArray) : IMesh {

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as Triangle

        return vertices.contentEquals(other.vertices)
    }

    override fun hashCode(): Int {
        return vertices.contentHashCode()
    }

}